<?php
/**
 * Created by 天沁信息科技.
 * User: 小涛.
 * Date: 2018/12/29
 * Time: 10:24
 */

namespace app\admin\controller;

/**
 * Class Goods 商品信息
 * @package app\admin\controller
 */
class Goods extends Admin
{
    //列表
    public function index(){
        $list = GoodsModel::listGoods(1,10);
        $this->assign("list",$list);
        return $this->fetch();
    }

    //下架商品
    public function warehouse(){
        $list = GoodsModel::listGoods(0,10);
        $this->assign("list",$list);
        return $this->fetch();
    }
}